/**
 * @author htl
 * @date 2018/11/25 0014
 * @Description:
 */
const mongoose = require('mongoose');
const dictSchema = new mongoose.Schema({
    type: {
        type: String,  // 类别，字典之间的唯一区分
        required: true
    },
    value: {
        type: String,
        trim: true,
        default: '',
        required: true
    },
    code: {
        type: String,
        required: true
    }
})

const dictModel = mongoose.model('dict',dictSchema); //创建集合（表）


module.exports = dictModel;
